package com.seuic.scanner2d.type;


public enum Scanner2DBarcodeType {
	CODE_39 (1),
	CODABAR (2),
	CODE_128 (3),
	DISCRETE_2_OF_5 (4),
	IATA (5),
	INTERLEAVED_2_OF_5 (6),
	CODE_93 (7),
	UPC_A (8),
	UPC_E0 (9),
	EAN_8 (10),
	EAN_13 (11),
	EAN_11 (12),
	CODE_49 (13),
	MSI (14),
	EAN_128 (15),
	UPC_E1 (16),
	PDF_417 (17),
	CODE_16K (18),
	CODE_39_FULL_ASCII (19),
	UPC_D (20),
	CODE_39_TRIOPTIC (21),
	BOOKLAND (22),
	COUPON_CODE (23),
	NW_7 (24),
	ISBT_128 (25),
	MICRO_PDF (26),
	DATA_MATRIX (27),
	QR_CODE (28),
	MICRO_PDF_CCA (29),
	POST_NET_US (30),
	PLANET_CODE (31),
	CODE_32 (32),
	ISBT_128_CON (33),
	JAPAN_POSTAL (34),
	AUSTRALIAN_POSTAL (35),
	DUTCH_POSTAL (36),
	MAXI_CODE (37),
	CANADIAN_POSTAL (38),
	UK_POSTAL (39),
	MACRO_PDF (40),
	MACRO_QR (41),
	MICRO_QR (44),
	AZTEC (45),
	AZTEC_RUNE (46),
	GS1_DATA_BAR_14 (48),
	GS1_DATA_BAR_LIMITED (49),
	GS1_DATA_BAR_EXPANDED (50),
	USPS_4CB (52),
	UPN_4STATE (53),
	ISSN (54),
	SCANLET (55),
	CUE_CODE (56),
	MATRIX_2_OF_5 (57),
	UPC_A_2_SUPPLEMENTAL (72),
	UPC_E0_2_SUPPLEMENTAL (73),
	EAN_8_2_SUPPLEMENTAL (74),
	EAN_13_2_SUPPLEMENTAL (75),
	UPC_E1_2_SUPPLEMENTAL (80),
	CCA_EAN_128 (81),
	CCA_EAN_13 (82),
	CCA_EAN_8 (83),
	CCA_GS1_DATA_BAR_EXPANDED (84),
	CCA_GS1_DATA_BAR_LIMITED (85),
	CCA_GS1_DATA_BAR_14 (86),
	CCA_UPC_A (87),
	CCA_UPC_E (88),
	CCC_EAN_18 (89),
	TLC_39 (90),
	CCN_EAN_128 (97),
	CCB_EAN_13 (98),
	CCB_EAN_8 (99),
	CCB_GS1_DATA_BAR_EXPANDED (100),
	CCB_GS1_DATA_BAR_LIMITED (101),
	CCB_GS1_DATA_BAR_14 (102),
	CCB_UPC_A (103),
	CCB_UPC_F (104),
	CHINESE_2_OF_5 (114),
	KOREAN_2_OF_5 (115),
	UPC_A_5_SUPPLEMENTAL (136),
	UPC_E0_5_SUPPLEMENTAL (137),
	EAN_8_5_SUPPLEMENTAL (138),
	EAN_13_5_SUPPLEMENTAL (139),
	UPC_E1_5_SUPPLEMENTAL (144),
	MACRO_MICRO_PDF (154),
	GS1_DATA_BAR_COUPON (180),
	HAN_XIN (183);
	
	public int type;
	Scanner2DBarcodeType(int type){
		this.type = type;
	}
	
	public static Scanner2DBarcodeType switchType(int type){
		switch(type){
		case 1: return CODE_39 ;
		case 2: return CODABAR;
		case 3: return CODE_128;
		case 4: return DISCRETE_2_OF_5;
		case 5: return IATA;
		case 6: return INTERLEAVED_2_OF_5;
		case 7: return CODE_93;
		case 8: return UPC_A;
		case 9: return UPC_E0;
		case 10: return EAN_8;
		case 11: return EAN_13;
		case 12: return EAN_11;
		case 13: return CODE_49;
		case 14: return MSI;
		case 15: return EAN_128;
		case 16: return UPC_E1;
		case 17: return PDF_417;
		case 18: return CODE_16K;
		case 19: return CODE_39_FULL_ASCII ;
		case 20: return UPC_D ;
		case 21: return CODE_39_TRIOPTIC ;
		case 22: return BOOKLAND ;
		case 23: return COUPON_CODE ;
		case 24: return NW_7 ;
		case 25: return ISBT_128 ;
		case 26: return MICRO_PDF ;
		case 27: return DATA_MATRIX ;
		case 28: return QR_CODE ;
		case 29: return MICRO_PDF_CCA ;
		case 30: return POST_NET_US ;
		case 31: return PLANET_CODE ;
		case 32: return CODE_32 ;
		case 33: return ISBT_128_CON;
		case 34: return JAPAN_POSTAL ;
		case 35: return AUSTRALIAN_POSTAL;
		case 36: return DUTCH_POSTAL ;
		case 37: return MAXI_CODE ;
		case 38: return CANADIAN_POSTAL ;
		case 39: return UK_POSTAL ;
		case 40: return MACRO_PDF ;
		case 41: return MACRO_QR ;
		case 44: return MICRO_QR ;
		case 45: return AZTEC ;
		case 46: return AZTEC_RUNE ;
		case 48: return GS1_DATA_BAR_14 ;
		case 49: return GS1_DATA_BAR_LIMITED ;
		case 50: return GS1_DATA_BAR_EXPANDED ;
		case 52: return USPS_4CB ;
		case 53: return UPN_4STATE ;
		case 54: return ISSN ;
		case 55: return SCANLET ;
		case 56: return CUE_CODE ;
		case 57: return MATRIX_2_OF_5 ;
		case 72: return UPC_A_2_SUPPLEMENTAL ;
		case 73: return UPC_E0_2_SUPPLEMENTAL ;
		case 74: return EAN_8_2_SUPPLEMENTAL ;
		case 75: return EAN_13_2_SUPPLEMENTAL ;
		case 80: return UPC_E1_2_SUPPLEMENTAL ;
		case 81: return CCA_EAN_128 ;
		case 82: return CCA_EAN_13 ;
		case 83: return CCA_EAN_8 ;
		case 84: return CCA_GS1_DATA_BAR_EXPANDED ;
		case 85: return CCA_GS1_DATA_BAR_LIMITED ;
		case 86: return CCA_GS1_DATA_BAR_14 ;
		case 87: return CCA_UPC_A ;
		case 88: return CCA_UPC_E ;
		case 89: return CCC_EAN_18 ;
		case 90: return TLC_39 ;
		case 97: return CCN_EAN_128 ;
		case 98: return CCB_EAN_13 ;
		case 99: return CCB_EAN_8 ;
		case 100: return CCB_GS1_DATA_BAR_EXPANDED ;
		case 101: return CCB_GS1_DATA_BAR_LIMITED ;
		case 102: return CCB_GS1_DATA_BAR_14 ;
		case 103: return CCB_UPC_A ;
		case 104: return CCB_UPC_F ;
		case 114: return CHINESE_2_OF_5 ;
		case 115: return KOREAN_2_OF_5 ;
		case 136: return UPC_A_5_SUPPLEMENTAL ;
		case 137: return UPC_E0_5_SUPPLEMENTAL ;
		case 138: return EAN_8_5_SUPPLEMENTAL ;
		case 139: return EAN_13_5_SUPPLEMENTAL ;
		case 144: return UPC_E1_5_SUPPLEMENTAL ;
		case 154: return MACRO_MICRO_PDF ;
		case 180: return GS1_DATA_BAR_COUPON ;
		case 183: return HAN_XIN;
		}
		return null;
	}
}
